﻿using Fake_Shop_WebApi.Models.Enum;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Threading.Tasks;

namespace Fake_Shop_WebApi.Models
{
    public class TouristRoute
    {
        [Key]
        public Guid Id { get; set; }
        [MaxLength(100)]
        [Required]
        public string Title { get; set; }
        [Required]
        [MaxLength(700)]
        public string Description { get; set; }
        //价格
     [Column(TypeName = "decimal(18,2)")]
        public decimal OriginalPrice { get; set; }
        //数量
        [Range(0.0, 1.0)]
        public double? DiscountPresent { get; set; }
        //创建时间
        public DateTime CreateTime { get; set; }
        //修改时间
        public DateTime? UpdateTime { get; set; }
        //出发时间
        public DateTime? DepartureTime { get; set; }
        //卖点介绍
       [MaxLength]
        public string Features { get; set; }
        //旅游站点线路
      [MaxLength]
        public string Fees { get; set; }
        //费用介绍
       [MaxLength]
        public string Notes { get; set; }
        //与照片类建立一对多的关系
        public ICollection<TouristRoutePicture> TouristRoutePictures { get; set; }= new List<TouristRoutePicture>();
        //等级
        public double? Rating { get; set; }
        //旅游天数
        public TravelDays  TravelDays { get; set; }
        //旅游类别
        public TripType TripType { get; set; }
        //旅游城市
        public DepartureCity DepartureCity { get; set; }


    }
}
